#pragma once

#pragma unmanaged

#include <BWSAL\TaskScheduler.h>

#pragma managed

#include "BuildUnit.h"

namespace BroodWar
{
	namespace Addon
	{
		public ref class TaskPlan
		{
		internal:
			BWSAL::TaskPlan* instance;

			TaskPlan(BWSAL::TaskPlan plan);
			~TaskPlan();
			!TaskPlan();
		public:
			property int RunTime { int get(); }
			property BuildUnit^ Builder { BuildUnit^ get(); }
			//not used yet (only needed for archon and dark archon)
			property BuildUnit^ SecondBuilder { BuildUnit^ get(); }
		};

		TaskPlan^ ConvertTaskPlan(BWSAL::TaskPlan plan);
		BWSAL::TaskPlan ConvertTaskPlan(TaskPlan^ plan);
	}
}
